define("appmsg/emotion/caret.js",[],function(e,t){
    "use strict";
    var t={};
    return t.get=function(e){
        var t=0;
        if(document.selection){
            e.focus();
            var a=document.selection.createRange();
            a.moveStart("character",-e.value.length),t=Sel.text.length;
        }else(e.selectionStart||"0"==e.selectionStart)&&(t=e.selectionStart);
        return t;
    },t.set=function(e,t){
        if(e.setSelectionRange)e.focus(),e.setSelectionRange(t,t);else if(e.createTextRange){
            var a=e.createTextRange();
            a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select();
        }
    },t;
});